package com.isoft.c2team3service2.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author 蓝莓
 * @date 2025/9/19 16:56
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommentDTO {
    private Integer id;
    // 关键修改：articleId → postId，关联帖子ID（Post.id）
    private Integer postId;
    private String content;
    private String filteredContent;
    private Integer userId;
    private Long parentId; // 若为回复评论，关联父评论ID（可保留）
    private String nickName;
    private Integer status; // 1=正常，0=删除（可保留）
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    private String photo;

}
